css: Rename struct variable
authorBenjamin Otte <otte@redhat.com>
Wed, 25 May 2011 22:09:26 +0000 (00:09 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 2 Jun 2011 00:03:50 +0000 (02:03 +0200)
I want to add parse_func as something different soon.

gtk/gtkcssprovider.c
gtk/gtkstyleproperties.c
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h

index 5cb8d8b58fa34e7de4f0c33846c7a4fcabd9bd78..1b3c12e0623129b68b21087dad802dcffb7566b0 100644 (file)
@@ -2094,7 +2094,7 @@ parse_declaration (GtkCssScanner *scanner,
           g_param_value_set_default (property->pspec, val);
           gtk_css_ruleset_add (ruleset, property, val);
         }
-      else if (property->parse_func)
+      else if (property->property_parse_func)
         {
           GError *error = NULL;
           char *value_str;
@@ -2106,9 +2106,11 @@ parse_declaration (GtkCssScanner *scanner,
               g_slice_free (GValue, val);
               return;
             }
-
-          if ((*property->parse_func) (value_str, val, &error))
-            gtk_css_ruleset_add (ruleset, property, val);
+          
+          if ((*property->property_parse_func) (value_str, val, &error))
+            {
+              gtk_css_ruleset_add (ruleset, property, val);
+            }
           else
             {
               gtk_css_provider_take_error (scanner->provider, scanner, error);
index f6671f7466aac69909c789bb8a0337a8245387bd..c0fb730c7a93e995784e59bc955e5c3226be2b0c 100644 (file)
@@ -348,7 +348,7 @@ gtk_style_properties_lookup_property (const gchar             *property_name,
         *pspec = node->pspec;
 
       if (parse_func)
-        *parse_func = node->parse_func;
+        *parse_func = node->property_parse_func;
 
       found = TRUE;
     }
index 3c4462367f6682248d0672315b16692043158087..9771eb5ebad9e4a787dddb9eb6a1d0d42d3d376f 100644 (file)
@@ -1641,7 +1641,7 @@ _gtk_style_property_lookup (const char *name)
 
 void
 _gtk_style_property_register (GParamSpec             *pspec,
-                              GtkStylePropertyParser  parse_func,
+                              GtkStylePropertyParser  property_parse_func,
                               GtkStyleUnpackFunc      unpack_func,
                               GtkStylePackFunc        pack_func)
 {
@@ -1662,7 +1662,7 @@ _gtk_style_property_register (GParamSpec             *pspec,
 
   node = g_slice_new0 (GtkStyleProperty);
   node->pspec = pspec;
-  node->parse_func = parse_func;
+  node->property_parse_func = property_parse_func;
   node->pack_func = pack_func;
   node->unpack_func = unpack_func;
 
index 8ffe0adf8b3c278f09a6c3d4d6af4a32351a66e0..ba9fd3f4b323e4cd9b3cc30bee2fbdb6873bac6b 100644 (file)
@@ -35,7 +35,7 @@ typedef void             (* GtkStylePackFunc)              (GValue
 struct _GtkStyleProperty
 {
   GParamSpec             *pspec;
-  GtkStylePropertyParser  parse_func;
+  GtkStylePropertyParser  property_parse_func;
   GtkStyleUnpackFunc      unpack_func;
   GtkStylePackFunc        pack_func;
 };
@@ -43,7 +43,7 @@ struct _GtkStyleProperty
 const GtkStyleProperty * _gtk_style_property_lookup        (const char             *name);
 
 void                     _gtk_style_property_register      (GParamSpec             *pspec,
-                                                            GtkStylePropertyParser  parse_func,
+                                                            GtkStylePropertyParser  property_parse_func,
                                                             GtkStyleUnpackFunc      unpack_func,
                                                             GtkStylePackFunc        pack_func);